package com.realdolmen.whiteyellowcross.memory.datastore;

import com.realdolmen.whiteyellowcross.model.Personel;



public class PersonelMemoryDataStore {

    private static Personel AMY = new Personel("Amy");
    private static Personel ANJA = new Personel("Anja");
    private static Personel CARLA = new Personel("Carla");
    private static Personel CAROLA = new Personel("Carola");
    private static Personel ELS = new Personel("Els");
    private static Personel EVY = new Personel("Evy");
    private static Personel LIA = new Personel("Lia");
    private static Personel MICHAEL = new Personel("Michael");
    private static Personel THALITA = new Personel("Thalita");


    private static final Personel[] personels = {AMY,ANJA,CARLA,CAROLA,ELS,EVY,LIA,MICHAEL,THALITA};

    public static Personel getRandomPersonel(){
        double roundumNumber = Math.random() * (personels.length - 1);
        return personels[new Double(roundumNumber).intValue()];
    }

    public static Personel[] getPersonelAsArray(){
        return personels;
    }

}
